<?php

namespace App\Kuafu\Feishu\Controller;

use App\Kuafu\Base\Controller\BaseController;
use App\Console\Commands\Feishu\SynchronizeUserinfo;
use Illuminate\Http\JsonResponse;
use Illuminate\Http\Request;

class UserController extends BaseController
{
    /**
     * 刷新飞书组织架构
     * @return \Illuminate\Http\JsonResponse
     */
    public function refreshFsUsers(Request $request): JsonResponse
    {
        (new SynchronizeUserinfo())->handle();

        return $this->success();
    }
}
